#ifndef DLGHOUSEEDIT_H
#define DLGHOUSEEDIT_H

#include <QDialog>
#include "dbmseditor.h"
#include <QDoubleValidator>

namespace Ui {
    class DlgHouseEdit;
}

class DlgHouseEdit : public QDialog, public DbmsEditor
{
    Q_OBJECT
    QDoubleValidator m_dvalidator;
    void data_to_form();
    void form_to_data();
    void setup_connection();

    void facilities_to_view(const QVariant &qv_data);
    QVariant get_facilities_from_view();

public:

    explicit DlgHouseEdit(QWidget *parent = 0);
    ~DlgHouseEdit();
private slots:
    void data_changed() {m_data_changed = true;}
private:
    Ui::DlgHouseEdit *ui;
};

#endif // DLGHOUSEEDIT_H
